package com.ssm.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.demo.dao.UserDao;
import com.ssm.demo.model.User;
import com.ssm.demo.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {

	@Autowired
	public UserDao userDao;
	@Override
	public int insertRecord(User record) {
		return userDao.insertRecord(record);
	}

	@Override
	public int insertSelective(User record) {
		return userDao.insertSelective(record);
	}

	@Override
	public int deleteById(Integer id) {
		return userDao.deleteById(id);
	}

	@Override
	public int updateByIdSelective(User record) {
		return userDao.updateByIdSelective(record);
	}

	@Override
	public int updateById(User record) {
		return userDao.updateById(record);
	}

	@Override
	public int countRecord() {
		return userDao.countRecord();
	}

	@Override
	public int countSelective(User record) {
		return userDao.countSelective(record);
	}

	@Override
	public int maxId() {
		return userDao.maxId();
	}

	@Override
	public User selectById(Integer id) {
		return userDao.selectById(id);
	}

	@Override
	public List selectAll() {
		return userDao.selectAll();
	}

}
